package events
{
	import flash.events.Event;
	
	public class ReaderEvent extends Event
	{
		/**
		 * 单页试图和缩略图视图切换的时候model抛出的事件 
		 */		
		public static const VIEW_MODE_CHANGED:String = "viewModeChanged";
		
		public static const VIEW_SCALE_CHANGED:String = "viewScaleChanged";
		
		public static const VIEW_THUMB_COUNTS_CHANGED:String = "viewThumbCountsChanged";
		
		/**
		 * 跳页事件，点击下一页，或者上一页，或者直接输入页码model都会发出此事件 
		 */		
		public static const JUMP_PAGE:String = "jumpPage";
		
		/**
		 * 某一页加载完毕后发出此事件 
		 */		
		public static const PAGE_LOADED:String = "pageLoaded";
		
		/**
		 * 打印完成之后，需要刷新整个舞台的内容 
		 */		
		public static const PAGE_REFRESH:String = "pageRefresh";
		
		/**
		 * 刷新控制按钮的状态 
		 */		
		public static const REFRESH_BUTTON_STATUS:String = "refreshButtonStatus";
		
		public static const FILE_LINK_READY:String = "fileLinkReady";
		
		public var data:Object;
		
		public function ReaderEvent(type:String, data:Object = null, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			this.data = data;
		}
		
		override public function clone():Event
		{
			return new ReaderEvent(type, data);
		}
	}
}